Enhance RabbitMQ plugin installation and feature flag options#754
Merged
Conversation
…upgrade
- Extend `plugins:` pillar to accept dict entries `{name, url, force_cleanup?}`:
downloads the .ez (filename derived from URL via basename) into the active
/usr/lib/rabbitmq/lib/rabbitmq_server-<VER>/plugins/ dir BEFORE the broker
restart, so /etc/rabbitmq/enabled_plugins references all stay resolvable on
start-up. String entries (built-in plugins) keep their original behaviour.
- Cleanup of stale copies runs in both the active versioned dir and
/usr/lib/rabbitmq/plugins/. Default pattern `<name>-<digit>*` keeps unrelated
files (`<name>.bak`, `<name>-foo`) intact; per-plugin `force_cleanup: True`
widens it to `<name>-*`.
- Add optional `rabbitmq:enable_all_feature_flag: True` which runs
`rabbitmqctl enable_feature_flag all` BEFORE `rabbit_pkg`, gated by an
`onlyif: rabbitmqctl status` so fresh installs skip it silently.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
plugins:pillar to accept dict entries{name, url, force_cleanup?}: downloads the .ez (filename derived from URL via basename) into the active /usr/lib/rabbitmq/lib/rabbitmq_server-/plugins/ dir BEFORE the broker restart, so /etc/rabbitmq/enabled_plugins references all stay resolvable on start-up. String entries (built-in plugins) keep their original behaviour.<name>-<digit>*keeps unrelated files (<name>.bak,<name>-foo) intact; per-pluginforce_cleanup: Truewidens it to<name>-*.rabbitmq:enable_all_feature_flag: Truewhich runsrabbitmqctl enable_feature_flag allBEFORErabbit_pkg, gated by anonlyif: rabbitmqctl statusso fresh installs skip it silently.